/***********************************************
 * Filename:  		Mesh.h
 * Date:      		???
 * Mod. Date: 		???
 * Mod. Initials:	MVP
 * Author:    		Mikeal V. Perry
 * Purpose:   		Contains mesh information used
 *					by an object
 ************************************************/

#ifndef _MESH_H
#define _MESH_H

struct TMesh
{
	// The enum used for the bitfield combinations
	enum eRender_Mesh_Flags {MESH_POSITION = 1, MESH_NORMAL = 2, MESH_TEXCOORD = 4, MESH_TANGENT = 8};

	char				m_szMeshName[32];			// The name of the mesh used for looking up in the renderer
	unsigned int		m_nVertCount;				// The number of verts in the mesh
	unsigned int		m_nVertStartIndex;			// The starting vertex in the renderer's buffer
	unsigned int		m_nNormalStartIndex;		// The starting vertex in the renderer's buffer
	unsigned int		m_nTexCoordStartIndex;		// The starting vertex in the renderer's buffer
	unsigned int		m_nTangentStartIndex;		// The starting vertex in the renderer's buffer
	unsigned int		m_nIndexStart;				// The starting index in the renderer's buffer
	unsigned int		m_nIndexCount;				// The number of indices in the mesh
	unsigned int		m_nPrimCount;				// The amount of primitives in the mesh
};

#endif